Validating Web Service Operations |
|
Before you begin this task:
- A Service Group which implements the Web service operation to be tested must be configured and the Service Container must be running.
- You must have the role of systemAdmin or organizationalAdmin.
You can test Web service operations using theOperations Test tool. This tool validates a Web service operation by composing the SOAP request and sending it to the appropriate Service Group for execution.
- Search for the Web service operation you intend to test. The relevant Web service operations are displayed in the Search Results box.
- Right-click a Web service operation and select Test.
Note: Alternatively, you can do the following: - In the Search Results box, right-click one of the results and select Properties.
- The Web Service Interface Properties - <Name of the Web Service Interface> dialog box appears. This box displays the Web service interfaces and operations in their corresponding App palettes.
- In the Web Service Operations App Palette, right-click an operation and select Test.
The Operation Test Tool dialog box appears.
- Replace the default text "PARAMETER" in the Task Request section with a value for the attribute to be sent to the Web service operation selected.
- Click Invoke. The Result Messages section is updated with the request and response messages.
- Click a Response or Request Message for the results of the Web service operation for the given parameter value. Refer to Result Messages Interface for information on the Result Messages section. The Operation Test Tool - Response Message or Request Message dialog box appears with the message received in XML format.
- Click Clear Messages to clear the request and response messages from the Result Messages section.
Note: Certain parameters that are set in the SOAP request constitute the message options required for reliable messaging and include No Reply and Transactional. Transactional indicates that the message has a preference to be sent using a transactional transport such as MSMQ or JMS. If the receiving service has no transactional transport, the connection points in a non-transactional transport such as a socket will be used. Depending on the option selected, following values are set for the message options while sending the SOAP request.
- When neither of the options is selected, the default message options value is set to 0.
- Selecting No Reply sets the message options value to 1.
- Selecting Transactional sets the message options value to 2.
- Selecting both No Reply and Transactional sets the message options value to 3.